package Decorator_Pattern.Phone;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        Phone phone1,phone2;
        phone2=new ComplexPhone();
        phone1=new SimplePhone();
        phone1=new Sound(phone1);
        phone1=new Jar(phone1);
        phone1.display();
        phone2=new Sound(phone2);
        phone2=new Jar(phone2);
        phone2=new Light(phone2);
        phone2.display();
    }
}
